import { Injectable } from '@angular/core';
import { SERVERS_NAME } from '../../../config/config';
import { HttpService } from '../../../core/http.service';
import { CommHttpService } from '../../../core/comm.http.service';

@Injectable()
export class SystemReceiptService extends CommHttpService {


  protected preUrl = `${SERVERS_NAME.INSTITUTION_SERVER}ins/`;

  constructor(protected http: HttpService) {
    super(http);
  }

  /**
   * 获取执行分配
   */
  getExecute(data) {
    return this.http.post(data, this.preUrl + 'getExecute');
  }

  /**
   * 执行分配
   */
  executes(data) {
    return this.http.post(data, this.preUrl + 'execute');
  }

  /**
   * 获取教师
   */
  getTeachList(data) {
    return this.http.post(data, `${SERVERS_NAME.SECURITY_SERVER}sys/teacher/list`);
  }
}
